using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Raster._OrthoMapping
{
    /// <summary>
    /// <para>Export Frame And Camera Parameters</para>
    /// <para>Exports frame and camera parameters from a mosaic dataset that contains frame imagery.</para>
    /// <para>从包含帧影像的镶嵌数据集中导出帧和照相机参数。</para>
    /// </summary>    
    [DisplayName("Export Frame And Camera Parameters")]
    public class ExportFrameAndCameraParameters : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ExportFrameAndCameraParameters()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_input_mosaic_dataset">
        /// <para>Input Mosaic Dataset</para>
        /// <para>The input mosaic dataset.</para>
        /// <para>输入镶嵌数据集。</para>
        /// </param>
        /// <param name="_output_file">
        /// <para>Output File</para>
        /// <para>The output file containing the frame and camera parameters. Supported file formats include .csv and .txt.</para>
        /// <para>包含帧和相机参数的输出文件。支持的文件格式包括 .csv 和 .txt。</para>
        /// </param>
        public ExportFrameAndCameraParameters(object _input_mosaic_dataset, object _output_file)
        {
            this._input_mosaic_dataset = _input_mosaic_dataset;
            this._output_file = _output_file;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Export Frame And Camera Parameters";

        public override string CallName => "management.ExportFrameAndCameraParameters";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_input_mosaic_dataset, _output_file, _output_format.GetGPValue()];

        /// <summary>
        /// <para>Input Mosaic Dataset</para>
        /// <para>The input mosaic dataset.</para>
        /// <para>输入镶嵌数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Mosaic Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _input_mosaic_dataset { get; set; }


        /// <summary>
        /// <para>Output File</para>
        /// <para>The output file containing the frame and camera parameters. Supported file formats include .csv and .txt.</para>
        /// <para>包含帧和相机参数的输出文件。支持的文件格式包括 .csv 和 .txt。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output File")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _output_file { get; set; }


        /// <summary>
        /// <para>Output Format</para>
        /// <para><xdoc>
        ///   <para>Specifies the output file format for the frame and camera parameters.</para>
        ///   <bulletList>
        ///     <bullet_item>Esri Frame and Camera Table—The frame and camera parameters will be exported as an Esri Frames and Camera table (.csv file). This is the default.</bullet_item><para/>
        ///     <bullet_item>Pix4D Calibrated Camera Parameters—The frame and camera parameters will be exported using the Pix4D calibrated camera parameters format (.txt file).</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定帧和相机参数的输出文件格式。</para>
        ///   <bulletList>
        ///     <bullet_item>Esri 帧和照相机表 - 帧和照相机参数将导出为 Esri 帧和照相机表（.csv文件）。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>Pix4D 校准相机参数—帧和相机参数将使用 Pix4D 校准相机参数格式（.txt文件）导出。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Format")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _output_format_value _output_format { get; set; } = _output_format_value._ESRI_FRAME_AND_CAMERA_TABLE;

        public enum _output_format_value
        {
            /// <summary>
            /// <para>Esri Frame and Camera Table</para>
            /// <para>Esri Frame and Camera Table—The frame and camera parameters will be exported as an Esri Frames and Camera table (.csv file). This is the default.</para>
            /// <para>Esri 帧和照相机表 - 帧和照相机参数将导出为 Esri 帧和照相机表（.csv文件）。这是默认设置。</para>
            /// </summary>
            [Description("Esri Frame and Camera Table")]
            [GPEnumValue("ESRI_FRAME_AND_CAMERA_TABLE")]
            _ESRI_FRAME_AND_CAMERA_TABLE,

            /// <summary>
            /// <para>Pix4D Calibrated Camera Parameters</para>
            /// <para>Pix4D Calibrated Camera Parameters—The frame and camera parameters will be exported using the Pix4D calibrated camera parameters format (.txt file).</para>
            /// <para>Pix4D 校准相机参数—帧和相机参数将使用 Pix4D 校准相机参数格式（.txt文件）导出。</para>
            /// </summary>
            [Description("Pix4D Calibrated Camera Parameters")]
            [GPEnumValue("PIX4D_CALIBRATED_CAMERA_PARAMETERS")]
            _PIX4D_CALIBRATED_CAMERA_PARAMETERS,

        }

        public ExportFrameAndCameraParameters SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}